title and legend finally in the right place