remove unnecessary stat()