move random number generator to other files
move conversions to other files