final code update