removed function bashismes