starting to fix variable initialization issues