added latest functionality