added more console logs