fixing pick syntax error