added simple detect