restructered simulation of markers
now compiling after restructure