error message added - need additional help with functions