fixed exception thrown to user if calling without method parameter