added color and write methods