minor fix
solved deprecated warning