trying to fix odd bugs