functions now with defined constants