adding functionality to prefab component