add init and last.