updated flock update method again