solved a few deprected warnings