getting rid of annoying warning error