change to static var when inserting