fixed useless warnings