reduce cpu cycle for better performance