new constructor, setInput methods