fixed truncate signature