make class variables functions