adding print exec function