getting final code