add paint mode operation