removed unused arrays and fixed create client bug