The variability mechanism of Seyfert galaxy NGC 4151