fixing simple warnings