added ne function to frame math