subpanel wiring after upgrading feeder wire
In addition to separating and isolating the neutral from ground you also need to drive a ground rod(s) (some jurisdictions will require 2 even though it is an accessory ground) and bond any other metal piping system in the garage.