return in proc was causing issues