remove custom allocation query