working bombs with neater code