added deprecated warning