replaced select with poll