switched functionality because it was wrong