adjusting code