taking a bit from Refreshed, but I think I see where the problem lies