legacy code for our client