sig function almost ready