code for planetm