changed NA to 0 in final step