put while into try
Created client