fixxed some graph stuff