Update logic, truble with memory pointer