posting functions for teacher