passing correct parameters