fixed passing wrong method parameter