fix warnings + shadow