not figuring this out correctly, but wasting too much time on it