fixing bug: input format