removed unused var
improved