fixed minor bug wrt required inpins