adding sint and refactoring