in the middle of legend implementation