before modifying the source | for ssvm costlayer