updated with the code suggested by @mateus007