changed Proc class