fatal flaw. data gets shuffled when buy stock. need to fix ASAP