number the file only when it's not numbered already

Added condition to number only when the file is not numbered already