add code for situation if need set $timestamp