changes allocation for request to heap