added compute cost to marker