added necessary stuff for parsing colors