changed bewdy, still doesn't work after changes to vcmax/jmax parameters