added declaration for fs