added cost plot