fixed scope

enhances for issue #225