functions i need to explain