added right and left middle alignment