restyle code for sigevent