added pass variable instead of hard coding