able to construct from double
application class for increment update function