added methods for initializing data