box plot func cleaned