added and restructured built-in procedures