checkAndPut