code with proper indentation