adding last functionality to client