moment doesnt seem to work as global?