cover function for sd