added methods and class variables