added borders to end and start