changed data type in main.js