some basic functions to gather some data