color function is added for lists