add sprites functionality