fixed bug in assignments