fix border code

still need to insert axes titles