finished rewriting .boolean()