added a check for sledposition