updated "constants".php, renamed functions