updated for a finer graph