some codes for sky work