function complete loader