added activate functionality