code with partial output improper alignment