added vertical bar positioning code

Bug 1 Fix