using activities rather then activity