implementing antialiasing