comments added to some functions....