i think this could need a comment in code. took me a bit to understand