compiler warnings (unused vars & order of init)