added if mobile check to get_size(). misc cleanup