modifications in circles problem (hw_5) intensity function