get double function written