added -O3 flag