cleaned up and pupils endpoint working