fix to use input