ruby added; change function name