plotting is working rudimentary