align shadow detection