I think I came up with a more understandable way for this, need to check notes