still working out errors