outsourced memory allocation to auxillary function
add landscape files for testing