What does "realize" mean?
Could you add a comment to tell what it's supposed to do?