simplified gear logic