removed flatten from findpos