completing tutorial: boundary alignment