removed unused var self = this