add missing gapps if statement