getting rid of annoying warnings