scope seems to be an issue