fixed assigment error