fixed the environment assignment issues in methods; closure methods now work as expected