added some setup functions
added some POP to program