added figure centering cause it was bugging me