removed global functions