basic form of function complete