use reverse() instead of reversed