adding functional inside Shard