added Plot functions