made work for single.js