modified fnx snippet