moved legend to inside plot