fixes bug where it doesn't draw exactly like flash does
fixes formating