tidied up memory allocation