changed kernel arguments to only be set once