attempt at fixing error