changed stat func to status becaose of conflicting declaration.proably from a new header imported