making methods for output and waiting