add type to bin, now correctly returning formula