finally got it to work reworded and redid console log and var