bug fix
code for computing pre and post locations