improved adding of assignments if only one student added