build steps out of bounds protection added