removed extra findpos func