used BLACK and WHITE constants