change truncate to floor