refactored for cleaning purposes
Revert "refactored for cleaning purposes"

This reverts commit a40df831852a1dfc3b90b6829d7f694d899d3044.
updated; can now use allocateDirect to eat up virtual memory