changed in searchAndGetPos