corrected check in processPut