updated quantity helper with convert_to method