trying to fix weird errors