this is very hard to read, mind extracting `some` into a separate variable?