f
replaced type comparisons with isinstance
f:m-2