adding *this* code to assignment