changed rule of lamp_num