initializing states