modified to use with more functions git status