function dec issues