adding naked triple logic