Title: Effects of magnetic fields in compact stars