removing [nil] from the params