seg fault fixed due to invallid number or agrs