added gte date.

TODO: refactorize functions!!!