a simple solution to issue #3