Sast error: function slice not defined
