taking care of blank inputs