declaring function for eval output