added more constraints for students