cleaned code for marker reconstruction