Implement sam spliting