input conversion