fix annyoing type warnings