sll parse and write