testing proper callback function