fix strict error of fn definition