make it global instead