added first variable to function