add logic about ins