fixed bad use of kwargs