fixed number of colors
refactored projection methods + fixed minor bug