changing to wrapper function in tries

because of free()-ing