check nil in alignment