fixing color implementation