added new method to FileParser