move beginning and end markers to objects variables