corrected errors in initializing block