working plots version 2