solving a github issue