removed buildColor function