trying to fix some problems