still trying to find plotting error