fixed bug for wrong inputs and not integer value