refactors grunt