[modification in custom function]