change all to to_a to avoid deprecation warning