change clients slice to map