fixed color definition and offset