added destrect parameters to setSource