first attempt at figuring it out