changed to a gamecomponent