pls to better file implementation