added color state and removed two logs