bug in my github function