plot displaying correctly