modified for scope usage