fixed issues with param evaluation in methods