updated polls, fixed errors in code