two edits
changed arg name for consistency
changed pos into envir