fixed deprecated funtion usage