debug for put