Changed to detector from dectector