Changed type function