added the appropriate functions