working on latex and plots