removed unused var and unnecessary call