removing depreceation errors