some code cleanup in homework fragments