removed file_exists check