remove console.log, inline function for createloading