remove keyword function. fix function definition bug