malloc call has been added, stack pointer addresses have been fixed