formatting paint methods