update instance variable color