add LS structure and function