filled in required codes for the functions