fixed warnings ( hope)