fixed the instance variable assignment