coding a convenient light for using