changed resamplef type