added #input  value check