cleaned up update method