modification for handling real data