fix problem with creating excessive inputs