few modifications for colorizing