put processtype staements in proc block