Trying to get envir right. removed prints