remove needless I/O to improve performance