make input as file