Modified the method to convert colospace