append tuple working now..just need to add error catching cases to prevent seg fault