refactored initialized to work with tests and changed a name for consistency