added marker detection code