factor-to-int messed up number, added an as.character layer