added beeping functionality