first attempt at fixing bugs