adding structure to client