updated
added plotting utility