simplifing input and other things