added sgr methods; updated constructor