clean-ish script (no errors) but is it the right method????