corrected input assertion