bug fix from converting to a object from proc