better code for git