evitar error deprecated