avoid embedded function to improve V8 code optimization & speed