made filecopy return int