removed derprecated warnings