fix all type warnings