fixed array comparison. cleanup