adding feature detection