fixed spacing and added update method