function for relative and absolute numbers