added standard pre-defined functions