code formatting, fixes on update info
fixing variable initialization