added marker detection