removed print statement
added a simple constraint that reduce the elapsed time to compute the whole query