Input agument not being ppassed correctly