trying to get tries count to work