checked that global setup and draw are functions