sample input fix