plot working, values wrong