fixed bugs, centering issue