done- input checks added