added check color method implementation