updated for the last challenge for black and white conversion