changed and added to main js