fixes deprecated helper methods warning