prototype of macpy