implemented AA and line width