replaced functions by string commands