read only functions checking the correct number of parameters