added printf
added bye msg