introduced trap to reduce redunant code