fixed use of deprecated call