ruby doesn't like bracket on previous line (codereview comment) so changed it totally