memory allocation funcs added