i understand what this is doing. but it looks really wired and tricky.