added loop to blur to set resulting valuse