solved out of range issue
shadows to pages