set proper types on various variables