holy fuck if only I understood basic order of operations