ambient class working fine