remove unnecessary function from issue #22 work