why not just pass time variable instead of creating another one and havint to memcpy