need to declar lag before using it