optimized logic: ++