updated pre commit hook