moved color stuff into getColor
works. moved stuff around. still not perfect