cleaned up the no sound java code