woop shorter implementation