fixing self reference