consolidates both initialize functions that I accidentally created two of