resolve deprecated warnings