updated with costs