This shortens the code, but I am not sure if they go in the opposite direction of what you had in mind