removed the boundaries portion of the code