still has memory and frame problem