changed method to inline for scatterbrush. performance optimized code omg