part1 with LW & SW working