more readable way to make the code portable to the client