bug fix in assignemnt