fixed Begin part to not be so shitty