fixed the memory bug; (forgot to allocate memory for object => undefined behavior)