fixing boundries