fix template
basic prog enhancement