introducted F() function to save memory