some syntax errors and marked selector bug