added ability to use integer inputs (finally)