fixed errors in assignments