another recode of genMemList() function

yes ill get this right soon :P