added func to gas class