edited base to include input