checkbox implementation works