WIP: remove unused variables
WIP: build plot